const importRouter = import.meta.globEager("./modules/*.js");
export const routes = Object.keys(importRouter).reduce((currentRoute,nextRoute)=>{
    const route = importRouter[nextRoute].default;
    currentRoute.push(route);
    return currentRoute;
},[]);

export const beforeResolve = (to,from,next)=>{
    // 1.过滤白名单
    //2.判断是否有token
    //
    next();
};
export const afterEach = (to,from)=>{
};